<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ page import="com.agent.shiro.ShiroUser" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%--<%@ taglib uri="http://www.ankangtong.com/tags" prefix="akt"%>--%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="natali" %>
<%
    ShiroUser shiroUser = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
%>
<%--定义常用页面变量 --%>
<c:set var="request" scope="page" value="${pageContext.request}" />
<c:set var="scheme" scope="page" value="${request.scheme}" />
<c:set var="server" scope="page" value="${request.serverName}" />
<c:set var="port" scope="page" value="${request.serverPort}" />
<c:set var="ctx" scope="page" value="${request.contextPath}" />
<c:set var="pageSize" scope="page" value="${empty cookie.PAGE_SIZE.value ? 30 : cookie.PAGE_SIZE.value}" />
<c:set var="loginUser" scope="page" value="<%=shiroUser%>" />


